package com.ruoyi.carpool.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.carpool.mapper.WxMessageMapper;
import com.ruoyi.carpool.domain.WxMessage;
import com.ruoyi.carpool.service.IWxMessageService;
import com.ruoyi.common.core.text.Convert;

/**
 * 拼车消息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-05
 */
@Service
public class WxMessageServiceImpl implements IWxMessageService 
{
    @Autowired
    private WxMessageMapper wxMessageMapper;

    /**
     * 查询拼车消息
     * 
     * @param id 拼车消息主键
     * @return 拼车消息
     */
    @Override
    public WxMessage selectWxMessageById(Long id)
    {
        return wxMessageMapper.selectWxMessageById(id);
    }

    /**
     * 查询拼车消息列表
     * 
     * @param wxMessage 拼车消息
     * @return 拼车消息
     */
    @Override
    public List<WxMessage> selectWxMessageList(WxMessage wxMessage)
    {
        return wxMessageMapper.selectWxMessageList(wxMessage);
    }

    /**
     * 新增拼车消息
     * 
     * @param wxMessage 拼车消息
     * @return 结果
     */
    @Override
    public int insertWxMessage(WxMessage wxMessage)
    {
        return wxMessageMapper.insertWxMessage(wxMessage);
    }

    /**
     * 修改拼车消息
     * 
     * @param wxMessage 拼车消息
     * @return 结果
     */
    @Override
    public int updateWxMessage(WxMessage wxMessage)
    {
        return wxMessageMapper.updateWxMessage(wxMessage);
    }

    /**
     * 批量删除拼车消息
     * 
     * @param ids 需要删除的拼车消息主键
     * @return 结果
     */
    @Override
    public int deleteWxMessageByIds(String ids)
    {
        return wxMessageMapper.deleteWxMessageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除拼车消息信息
     * 
     * @param id 拼车消息主键
     * @return 结果
     */
    @Override
    public int deleteWxMessageById(Long id)
    {
        return wxMessageMapper.deleteWxMessageById(id);
    }
}
